package com.wtwd.wtwddevice.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.wtwd.device.model.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2024-05-29
 */
@ApiModel(value="DeviceBloodPressure对象", description="")
public class DeviceBloodPressure extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备血压主键id")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "设备id")
    private Long deviceId;

    @ApiModelProperty(value = "血压值")
    private Integer value;

    @ApiModelProperty(value = "设备时间")
    private String time;

    @ApiModelProperty(value = "流水号")
    private String number;

    @ApiModelProperty(value = "数据来源 0设备,1:app")
    private Integer type;

    @ApiModelProperty(value = "0未佩戴1佩戴")
    private String isWear;

    @ApiModelProperty(value = "设备血压表主键Id")
    private Long deviceBloodPressureTotalId;


    public Long getDeviceBloodPressureTotalId() {
        return deviceBloodPressureTotalId;
    }

    public void setDeviceBloodPressureTotalId(Long deviceBloodPressureTotalId) {
        this.deviceBloodPressureTotalId = deviceBloodPressureTotalId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getIsWear() {
        return isWear;
    }

    public void setIsWear(String isWear) {
        this.isWear = isWear;
    }

    @Override
    public String toString() {
        return "DeviceBloodPressure{" +
                "id=" + id +
                ", deviceId=" + deviceId +
                ", value=" + value +
                ", time=" + time +
                ", number='" + number + '\'' +
                ", type=" + type +
                ", isWear='" + isWear + '\'' +
                ", deviceBloodPressureTotalId=" + deviceBloodPressureTotalId +
                '}';
    }
}
